home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / DefineButton2_435 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2007-09-27  |  744b  |  32 lines

  1. on(release){
  2.    this.stopDrag();
  3.    this.gotoAndStop(1);
  4.    if(this.hitTest(_root.fry.fdrop))
  5.    {
  6.       _root.txtF._visible = true;
  7.       _root.txtF.play();
  8.       this._x = targetX;
  9.       this._y = targetY;
  10.    }
  11.    if(this.hitTest(_root.chop.edrop))
  12.    {
  13.       _root.chop.cucumberx._visible = true;
  14.       this._x = targetX;
  15.       this._y = targetY;
  16.       if(_root.chr._currentframe == 1)
  17.       {
  18.          _root.txtX._visible = true;
  19.          _root.txtX.play();
  20.          _root.chr.gotoAndPlay(11);
  21.          this._x = targetX;
  22.          this._y = targetY;
  23.       }
  24.    }
  25.    else if(this.hitTest(_root.chr.idrop))
  26.    {
  27.       _root.chr.cucumber._visible = true;
  28.       this._x = targetX;
  29.       this._y = targetY;
  30.    }
  31. }
  32.